Imports System.ComponentModel

<ToolboxBitmap(GetType(ToolStrip))> _
Public Class ACToolBarMantHorizontalNew
   Inherits ToolStrip

#Region " Variables "

   Private m_tipotoolbar As tipoToolBar = tipoToolBar.ToolNuevoGrabarEliminar

   Enum TipoInstancia
      Buscar
      Volver
      Nuevo
      Modificar
      Cancelar
   End Enum

   Enum tipoToolBar
      ToolReporte
      ToolNuevoGrabar
      ToolNuevoGrabarAnular
      ToolNuevoGrabarEliminar
      ToolNuevoGrabarAnularBuscar
      ToolNuevoGrabarEliminarBuscar
      ToolNuevoGrabarAnularRehusar
      ToolNuevoGrabarAnularBuscarRehusar
      ToolNuevoGrabarEliminarRehusar
      ToolNuevoGrabarEliminarBuscarRehusar
      ToolNuevoGrabarImprimir
      ToolNuevoGrabarAnularImprimir
      ToolNuevoGrabarEliminarImprimir
      ToolNuevoGrabarAnularBuscarImprimir
      ToolNuevoGrabarEliminarBuscarImprimir
      ToolNuevoGrabarAnularRehusarImprimir
      ToolNuevoGrabarAnularBuscarRehusarImprimir
      ToolNuevoGrabarEliminarRehusarImprimir
      ToolNuevoGrabarEliminarBuscarRehusarImprimir
      ToolSalir
      ToolGrabar
      ToolGrabarAnular
      ToolGrabarEliminar
      ToolGrabarAnularBuscar
      ToolGrabarEliminarBuscar
      ToolGrabarAnularRehusar
      ToolGrabarAnularBuscarRehusar
      ToolGrabarEliminarRehusar
      ToolGrabarEliminarBuscarRehusar
      ToolGrabarImprimir
      ToolGrabarAnularImprimir
      ToolGrabarEliminarImprimir
      ToolGrabarAnularBuscarImprimir
      ToolGrabarEliminarBuscarImprimir
      ToolGrabarAnularRehusarImprimir
      ToolGrabarAnularBuscarRehusarImprimir
      ToolGrabarEliminarRehusarImprimir
      ToolGrabarEliminarBuscarRehusarImprimir
   End Enum
#End Region

#Region " Eventos "
   Public Event ACBtnNuevo_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnModificar_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnCancelar_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnEliminarAnular_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnEliminar_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnSalir_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnVolver_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnBuscar_Click(ByVal sender As Object, ByVal e As System.EventArgs)

   Public Event ACBtnGrabar_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnRehusar_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnReporte_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnImprimir_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Public Event ACBtnAnular_Click(ByVal sender As Object, ByVal e As System.EventArgs)

#End Region

#Region " Propiedades "
   <Description("Propiedades Tipos de Barra de Botones"), _
   Category("Botones"), DefaultValue(tipoToolBar.ToolNuevoGrabarEliminar), Browsable(True)> _
   Public Property ACTipoToolBar() As tipoToolBar
      Get
         Return m_tipotoolbar
      End Get
      Set(ByVal value As tipoToolBar)
         m_tipotoolbar = value
         setInstancia(m_tipotoolbar)
      End Set
   End Property

#Region " Propiedad Visible de los botones "
   <Description("Propiedades del Boton Nuevo, propiedad Visible."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnNuevoVisible() As Boolean
      Get
         Return Me.tsbNuevo.Visible
      End Get
      Set(ByVal value As Boolean)
         Me.tsbNuevo.Visible = value
         Me.tssNuevo.Visible = value
         Me.tsbNuevo.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Modificar."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnModificarVisible() As Boolean
      Get
         Return Me.tsbModificar.Visible
      End Get
      Set(ByVal value As Boolean)
         Me.tsbModificar.Visible = value
         Me.tssModificar.Visible = value
         Me.tsbModificar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Cancelar."), _
  Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
  Public Property ACBtnCancelarVisible() As Boolean
      Get
         Return tsbCancelar.Visible
      End Get
      Set(ByVal value As Boolean)
         tsbCancelar.Visible = value
         tssCancelar.Visible = value
         tsbCancelar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Eliminar."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnEliminarVisible() As Boolean
      Get
         Return Me.tsbEliminar.Visible
      End Get
      Set(ByVal value As Boolean)
         Me.tsbEliminar.Visible = value
         Me.tssEliminar.Visible = value
         Me.tsbEliminar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Salir."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnSalirVisible() As Boolean
      Get
         Return Me.tsbSalir.Visible
      End Get
      Set(ByVal value As Boolean)
         Me.tsbSalir.Visible = value
         Me.tssSalir.Visible = value
         Me.tsbSalir.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Grabar."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnVolverVisible() As Boolean
      Get
         Return Me.tsbVolver.Visible
      End Get
      Set(ByVal value As Boolean)
         Me.tsbVolver.Visible = value
         Me.tssVolver.Visible = value
         Me.tsbVolver.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Cancelar."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnBuscarVisible() As Boolean
      Get
         Return Me.tsbBuscar.Visible
      End Get
      Set(ByVal value As Boolean)
         Me.tsbBuscar.Visible = value
         Me.tssBuscar.Visible = value
         Me.tsbBuscar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Grabar."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnGrabarVisible() As Boolean
      Get
         Return tsbGrabar.Visible
      End Get
      Set(ByVal value As Boolean)
         tsbGrabar.Visible = value
         tssGrabar.Visible = value
         tsbGrabar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Rehusar."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnRehusarVisible() As Boolean
      Get
         Return tsbRehusar.Visible
      End Get
      Set(ByVal value As Boolean)
         tsbRehusar.Visible = value
         tssRehusar.Visible = value
         tsbRehusar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Reporte."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnReporteVisible() As Boolean
      Get
         Return tsbReporte.Visible
      End Get
      Set(ByVal value As Boolean)
         tsbReporte.Visible = value
         tssReporte.Visible = value
         tsbReporte.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Anular."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnAnularVisible() As Boolean
      Get
         Return tsbAnular.Visible
      End Get
      Set(ByVal value As Boolean)
         tsbAnular.Visible = value
         tssAnular.Visible = value
         tsbAnular.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Imprimir."), _
   Category("AC Propiedad Visible"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnImprimirVisible() As Boolean
      Get
         Return tsbImprimir.Visible
      End Get
      Set(ByVal value As Boolean)
         tsbImprimir.Visible = value
         tssImprimir.Visible = value
         tsbImprimir.Enabled = value
      End Set
   End Property

#End Region

#Region " Propiedad Etiqueta de los botones "
   <Description("Propiedades del Boton Nuevo, propiedad Etiqueta."), _
   Category("AC Propiedad Visible"), DefaultValue("&Nuevo"), Browsable(True)> _
   Public Property ACBtnNuevoText() As String
      Get
         Return Me.tsbNuevo.Text
      End Get
      Set(ByVal value As String)
         Me.tsbNuevo.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Modificar."), _
   Category("AC Propiedad Visible"), DefaultValue("&Modificar"), Browsable(True)> _
   Public Property ACBtnModificarText() As String
      Get
         Return Me.tsbModificar.Text
      End Get
      Set(ByVal value As String)
         Me.tsbModificar.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Cancelar."), _
  Category("AC Propiedad Text"), DefaultValue("&Cancelar"), Browsable(True)> _
  Public Property ACBtnCancelarText() As String
      Get
         Return tsbCancelar.Text
      End Get
      Set(ByVal value As String)
         tsbCancelar.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Eliminar."), _
   Category("AC Propiedad Text"), DefaultValue("&Eliminar"), Browsable(True)> _
   Public Property ACBtnEliminarText() As String
      Get
         Return Me.tsbEliminar.Text
      End Get
      Set(ByVal value As String)
         Me.tsbEliminar.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Salir."), _
   Category("AC Propiedad Text"), DefaultValue("Salir"), Browsable(True)> _
   Public Property ACBtnSalirText() As String
      Get
         Return Me.tsbSalir.Text
      End Get
      Set(ByVal value As String)
         Me.tsbSalir.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Volver."), _
   Category("AC Propiedad Text"), DefaultValue("&Volver"), Browsable(True)> _
   Public Property ACBtnVolverText() As String
      Get
         Return Me.tsbVolver.Text
      End Get
      Set(ByVal value As String)
         Me.tsbVolver.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Buscar."), _
   Category("AC Propiedad Text"), DefaultValue("&Buscar"), Browsable(True)> _
   Public Property ACBtnBuscarText() As String
      Get
         Return Me.tsbBuscar.Text
      End Get
      Set(ByVal value As String)
         Me.tsbBuscar.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Grabar."), _
   Category("AC Propiedad Text"), DefaultValue("&Grabar"), Browsable(True)> _
   Public Property ACBtnGrabarText() As String
      Get
         Return tsbGrabar.Text
      End Get
      Set(ByVal value As String)
         tsbGrabar.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Rehusar."), _
   Category("AC Propiedad Text"), DefaultValue("&Rehusar"), Browsable(True)> _
   Public Property ACBtnRehusarText() As String
      Get
         Return tsbRehusar.Text
      End Get
      Set(ByVal value As String)
         tsbRehusar.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Reporte."), _
   Category("AC Propiedad Text"), DefaultValue("&Reporte"), Browsable(True)> _
   Public Property ACBtnReporteText() As String
      Get
         Return tsbReporte.Text
      End Get
      Set(ByVal value As String)
         tsbReporte.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Anular."), _
   Category("AC Propiedad Text"), DefaultValue("&Anular"), Browsable(True)> _
   Public Property ACBtnAnularText() As String
      Get
         Return tsbAnular.Text
      End Get
      Set(ByVal value As String)
         tsbAnular.Text = value
      End Set
   End Property

   <Description("Propiedades del Boton Imprimir."), _
   Category("AC Propiedad Text"), DefaultValue("&Imprimir"), Browsable(True)> _
   Public Property ACBtnImprimirText() As String
      Get
         Return tsbImprimir.Text
      End Get
      Set(ByVal value As String)
         tsbImprimir.Text = value
      End Set
   End Property

#End Region

#Region " Propiedad Enabled de los botones "
   <Description("Propiedades del Boton Nuevo."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnNuevoEnabled() As Boolean
      Get
         Return Me.tsbNuevo.Enabled
      End Get
      Set(ByVal value As Boolean)
         Me.tsbNuevo.Enabled = value
         Me.tssNuevo.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Modificar."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnModificarEnabled() As Boolean
      Get
         Return Me.tsbModificar.Enabled
      End Get
      Set(ByVal value As Boolean)
         Me.tsbModificar.Enabled = value
         Me.tssModificar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Cancelar."), _
  Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
  Public Property ACBtnCancelarEnabled() As Boolean
      Get
         Return tsbCancelar.Enabled
      End Get
      Set(ByVal value As Boolean)
         tsbCancelar.Enabled = value
         tssCancelar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Eliminar."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnEliminarEnabled() As Boolean
      Get
         Return Me.tsbEliminar.Enabled
      End Get
      Set(ByVal value As Boolean)
         Me.tsbEliminar.Enabled = value
         Me.tssEliminar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Salir."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnSalirEnabled() As Boolean
      Get
         Return Me.tsbSalir.Enabled
      End Get
      Set(ByVal value As Boolean)
         Me.tsbSalir.Enabled = value
         Me.tssSalir.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Grabar."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnVolverEnabled() As Boolean
      Get
         Return Me.tsbVolver.Enabled
      End Get
      Set(ByVal value As Boolean)
         Me.tsbVolver.Enabled = value
         Me.tssVolver.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Cancelar."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnBuscarEnabled() As Boolean
      Get
         Return Me.tsbBuscar.Enabled
      End Get
      Set(ByVal value As Boolean)
         Me.tsbBuscar.Enabled = value
         Me.tssBuscar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Grabar."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnGrabarEnabled() As Boolean
      Get
         Return tsbGrabar.Enabled
      End Get
      Set(ByVal value As Boolean)
         tsbGrabar.Enabled = value
         tssGrabar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Rehusar."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnRehusarEnabled() As Boolean
      Get
         Return tsbRehusar.Enabled
      End Get
      Set(ByVal value As Boolean)
         tsbRehusar.Enabled = value
         tssRehusar.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Reporte."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnReporteEnabled() As Boolean
      Get
         Return tsbReporte.Enabled
      End Get
      Set(ByVal value As Boolean)
         tsbReporte.Enabled = value
         tssReporte.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Anular."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnAnularEnabled() As Boolean
      Get
         Return tsbAnular.Enabled
      End Get
      Set(ByVal value As Boolean)
         tsbAnular.Enabled = value
         tssAnular.Enabled = value
      End Set
   End Property

   <Description("Propiedades del Boton Imprimir."), _
   Category("AC Propiedad Enabled"), DefaultValue(True), Browsable(True)> _
   Public Property ACBtnImprimirEnabled() As Boolean
      Get
         Return tsbImprimir.Enabled
      End Get
      Set(ByVal value As Boolean)
         tsbImprimir.Enabled = value
         tssImprimir.Enabled = value
      End Set
   End Property

#End Region

#Region " Todos los Controles - Botones "

   <Description("Propiedades del Control Boton Nuevo."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnNuevo() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbNuevo
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbNuevo = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Modificar."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnModificar() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbModificar
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbModificar = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Cancelar."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnCancelar() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbCancelar
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbCancelar = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Eliminar."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnEliminar() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbEliminar
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbEliminar = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Salir."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnSalir() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbSalir
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbSalir = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Grabar."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnGrabar() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbGrabar
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbGrabar = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Rehusar."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnRehusar() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbRehusar
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbRehusar = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Reporte."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnReporte() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbReporte
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbReporte = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Imprimir."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnImprimir() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbImprimir
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbImprimir = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Anular."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnAnular() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbAnular
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbAnular = value
      End Set
   End Property

   <Description("Propiedades del Control Boton Volver."), _
   Category("AC Propiedad Control"), Browsable(True)> _
   Public Property ACBtnVolver() As System.Windows.Forms.ToolStripButton
      Get
         Return tsbVolver
      End Get
      Set(ByVal value As System.Windows.Forms.ToolStripButton)
         tsbVolver = value
      End Set
   End Property

#End Region
#End Region

#Region " Metodos "
   Private Sub setInstancia(ByVal x_opcion As tipoToolBar)
      Select Case x_opcion
         Case tipoToolBar.ToolReporte
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = False
            tsbReporte.Visible = True
            tsbEliminar.Visible = False
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = False
            tsbReporte.Enabled = True
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = False
            tssReporte.Visible = True
            tssEliminar.Visible = False
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabar
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarAnular
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarEliminar
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarAnularBuscar
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarEliminarBuscar
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarAnularRehusar
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarAnularBuscarRehusar
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarEliminarRehusar
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarEliminarBuscarRehusar
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarAnularImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarEliminarImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarAnularBuscarImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarEliminarBuscarImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarAnularRehusarImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = True
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = True
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarAnularBuscarRehusarImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = True
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = True
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarEliminarRehusarImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = True
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = True
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolNuevoGrabarEliminarBuscarRehusarImprimir
            tsbNuevo.Visible = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolSalir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = False
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = False
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = False
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
            '''

         Case tipoToolBar.ToolGrabar
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarAnular
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarEliminar
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarAnularBuscar
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarEliminarBuscar
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = False
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = False
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarAnularRehusar
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarAnularBuscarRehusar
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarEliminarRehusar
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarEliminarBuscarRehusar
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarAnularImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarEliminarImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarAnularBuscarImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarEliminarBuscarImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = False
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = False
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = False
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarAnularRehusarImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = True
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = True
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarAnularBuscarRehusarImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = False
            tsbAnular.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = True
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = False
            tsbAnular.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = False
            tssAnular.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = True
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarEliminarRehusarImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = False
            tsbRehusar.Visible = True
            tsbImprimir.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = False
            tssRehusar.Visible = True
            tssImprimir.Visible = True
            tssCancelar.Visible = False
         Case tipoToolBar.ToolGrabarEliminarBuscarRehusarImprimir
            tsbNuevo.Visible = False
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbReporte.Visible = False
            tsbEliminar.Visible = True
            tsbAnular.Visible = False
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbRehusar.Visible = True
            tsbImprimir.Visible = False
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbReporte.Enabled = False
            tsbEliminar.Enabled = True
            tsbAnular.Enabled = False
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbRehusar.Enabled = True
            tsbImprimir.Enabled = False
            tsbCancelar.Enabled = False

            tssNuevo.Visible = False
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssReporte.Visible = False
            tssEliminar.Visible = True
            tssAnular.Visible = False
            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssRehusar.Visible = True
            tssImprimir.Visible = False
            tssCancelar.Visible = False
      End Select
   End Sub

   Public Sub setInstancia(ByVal x_opcion As TipoInstancia)
      Select Case x_opcion
         Case TipoInstancia.Buscar
            tsbVolver.Visible = True
            tsbBuscar.Visible = False
            tsbNuevo.Enabled = False
            tsbModificar.Enabled = False
            tsbEliminar.Enabled = False

            tsbVolver.Enabled = True
            tsbBuscar.Enabled = False
            tsbNuevo.Enabled = False
            tsbModificar.Enabled = False
            tsbEliminar.Enabled = False

            tssVolver.Visible = True
            tssBuscar.Visible = False
            tssNuevo.Enabled = False
            tssModificar.Enabled = False
            tssEliminar.Enabled = False
         Case TipoInstancia.Volver
            tsbVolver.Visible = False
            tsbBuscar.Visible = True
            tsbNuevo.Enabled = True
            tsbModificar.Enabled = True
            tsbEliminar.Enabled = True

            tsbVolver.Enabled = False
            tsbBuscar.Enabled = True
            tsbNuevo.Enabled = True
            tsbModificar.Enabled = True
            tsbEliminar.Enabled = True

            tssVolver.Visible = False
            tssBuscar.Visible = True
            tssNuevo.Enabled = True
            tssModificar.Enabled = True
            tssEliminar.Enabled = True
         Case TipoInstancia.Nuevo
            tsbNuevo.Enabled = False
            tsbGrabar.Visible = True
            tsbModificar.Visible = False
            tsbCancelar.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = True
            tsbModificar.Enabled = False
            tsbCancelar.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False

            tssNuevo.Enabled = False
            tssGrabar.Visible = True
            tssModificar.Visible = False
            tssCancelar.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
         Case TipoInstancia.Modificar
            tsbNuevo.Enabled = False
            tsbGrabar.Visible = True
            tsbModificar.Visible = False
            tsbCancelar.Visible = True
            tsbVolver.Visible = False
            tsbBuscar.Visible = False

            tsbNuevo.Enabled = False
            tsbGrabar.Enabled = True
            tsbModificar.Enabled = False
            tsbCancelar.Enabled = True
            tsbVolver.Enabled = False
            tsbBuscar.Enabled = False

            tssNuevo.Enabled = False
            tssGrabar.Visible = True
            tssModificar.Visible = False
            tssCancelar.Visible = True
            tssVolver.Visible = False
            tssBuscar.Visible = False
         Case TipoInstancia.Cancelar
            tsbNuevo.Enabled = True
            tsbGrabar.Visible = False
            tsbModificar.Visible = True
            tsbCancelar.Visible = False

            tsbNuevo.Enabled = True
            tsbGrabar.Enabled = False
            tsbModificar.Enabled = True
            tsbCancelar.Enabled = False

            tssNuevo.Enabled = True
            tssGrabar.Visible = False
            tssModificar.Visible = True
            tssCancelar.Visible = False
            setInstancia(m_tipotoolbar)
      End Select
   End Sub
#End Region

#Region " Metodos de Controles"
   Private Sub tsbNuevo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbNuevo.Click
      setInstancia(TipoInstancia.Nuevo)
      RaiseEvent ACBtnNuevo_Click(sender, e)
   End Sub

   Private Sub tsbModificar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbModificar.Click
      setInstancia(TipoInstancia.Nuevo)
      RaiseEvent ACBtnModificar_Click(sender, e)
   End Sub

   Private Sub tsbEliminarAnular_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbEliminar.Click
      RaiseEvent ACBtnEliminarAnular_Click(sender, e)
   End Sub

   Private Sub tsbEliminar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbEliminar.Click
      RaiseEvent ACBtnEliminar_Click(sender, e)
   End Sub

   Private Sub tsbSalir_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbSalir.Click
      RaiseEvent ACBtnSalir_Click(sender, e)
   End Sub

   Private Sub tsbVolver_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbVolver.Click
      RaiseEvent ACBtnVolver_Click(sender, e)
   End Sub

   Private Sub tsbBuscar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbBuscar.Click
      RaiseEvent ACBtnBuscar_Click(sender, e)
   End Sub

   Private Sub tsbGrabar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbGrabar.Click
      setInstancia(TipoInstancia.Cancelar)
      RaiseEvent ACBtnGrabar_Click(sender, e)
   End Sub

   Private Sub tsbRehusar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbRehusar.Click
      RaiseEvent ACBtnRehusar_Click(sender, e)
   End Sub

   Private Sub tsbReporte_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbReporte.Click
      RaiseEvent ACBtnReporte_Click(sender, e)
   End Sub

   Private Sub tsbAnular_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbAnular.Click
      RaiseEvent ACBtnAnular_Click(sender, e)
   End Sub

   Private Sub tsbImprimir_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbImprimir.Click
      RaiseEvent ACBtnImprimir_Click(sender, e)
   End Sub

   Private Sub tsbCancelar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbCancelar.Click
      setInstancia(TipoInstancia.Cancelar)
      RaiseEvent ACBtnCancelar_Click(sender, e)
   End Sub
#End Region

End Class
